package cn.source.zk.service.impl;

import cn.source.zk.domain.entity.*;
import cn.source.zk.mapper.DimensionTablesMapper;
import cn.source.zk.service.DimensionTablesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Collections;
import java.util.List;

@Service
public class DimensionTablesServiceImpl implements DimensionTablesService {

    @Autowired
    private DimensionTablesMapper dimensionTablesMapper;

    /**
     * 入网方式
     * @return
     */
    public List<ConnMethod> getConnMethod() {
        return dimensionTablesMapper.getConnMethod();
    }

    /**
     * 接入方式
     * @return
     */
    public List<WiringMethod> getWiringMethod() {
        return dimensionTablesMapper.getWiringMethod();
    }

    /**
     * 通信规约
     * @return
     */
    public List<CommunicationProtocol> getCommunicationProtocol() {
        return dimensionTablesMapper.getCommunicationProtocol();
    }

    /**
     * 额定电压
     * @return
     */
    public List<RatedVol> getRatedVol() {

        return dimensionTablesMapper.getRatedVol();

    }

    /**
     * 接入方式
     * @return
     */
    public List<AccessMethod> getAccessMethod() {
        return dimensionTablesMapper.getAccessMethod();
    }

    /**
     * 电压等级
     * @return
     */
    public List<VolLevel> getVolLevel() {
        return dimensionTablesMapper.getVolLevel();
    }

    /**
     * 设备状态
     * @return
     */
    public List<DeviceStatus> getDeviceStatus() {
        return dimensionTablesMapper.getDeviceStatus();
    }

    /**
     * 同步方式
     * @return
     */
    public List<TimeSyncMethod> getTimeSyncMethod() {
        return dimensionTablesMapper.getTimeSyncMethod();
    }
}
